﻿@model IEnumerable<SchoolProject2012.Areas.Pedagogie.Models.COURS>

@{
    ViewBag.Title = "Liste des cours";
}
<a data-next="#section3" data-prior="#section2" href="#" id="arrow2" class="next-section"></a>
<h2>Index</h2>

<p>
    @Html.ActionLink("Ajouter un cour", "Create",null, new { @class = "link" })
</p>
<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.ID_MOD)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.SALLE.LIBSALLE)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.PROFESSEUR.COMPETENCES_PROF)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.DATE_DBT)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.DATE_FIN)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.ID_MOD)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.SALLE.LIBSALLE)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PROFESSEUR.COMPETENCES_PROF)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DATE_DBT)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DATE_FIN)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.ID_COURS}, new { @class = "link" }) |
            @Html.ActionLink("Details", "Details", new { id=item.ID_COURS}, new { @class = "link" }) |
            @Html.ActionLink("Delete", "Delete", new { id = item.ID_COURS }, new { @class = "link" })
        </td>
    </tr>
}

</table>
